<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name = "format-detection" content="telephone = no" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>关于</title>
		<link rel="stylesheet" type="text/css" href="../../css/api.css" />
		<link rel="stylesheet" type="text/css" href="../../css/weui.min.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/title.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/base.css"/>
	</head>
	<style type="text/css" media="screen">
		html, body {
			height: 100%;
			background-color: white;
		}
		/*    #wrap{
		 height: 100%;
		 display: -webkit-box;
		 display: -webkit-flex;
		 display: flex;
		 -webkit-box-orient: vertical;
		 -webkit-flex-flow: column;
		 flex-flow: column;
		 }*/
		/*  #main{
		 -webkit-box-flex: 1;
		 -webkit-flex: 1;
		 flex: 1;
		 }  */
		.navDiv {
			background-color: #28292d;
			height: 44px;
			display: -webkit-flex;
			display: flex;
			align-items: center;
			justify-content: center;
			justify-content: space-between;
			font-size: 16px;
			position: fixed;
			width: 100%;
		}
		.navDiv .title {
			color: #fff;
		}
		.returnBtn {
			color: #fff;
			background: none;
			border-style: none;
			/*margin-left: 10px;*/
			font-size: 16px;
		}
		.returnBtn:focus {
			outline: none;
		}
		.title_bulk {
			width: 60px;
			height: 44px;
			/*margin-right: 10px;*/
		}
		.versionDiv {
			text-align: center;
			background-color: white;
			margin-top: 44px;
		}
		.logoImg {
			max-width: 120px;
			/*height: 120px;*/
			padding-top: 10px;
		}
		.appTitle {
			font-size: 20px;
			font-weight: bold;
		}
		.versionInfo {
			font-size: 14px;
			color: #999;
		}
		.appInfoDiv {
			margin-top: 0px;
		}
		.appTitleDiv .title {
			color: black;
		}
		.introduceDiv, .contactInfoDiv {
			background-color: white;
			font-size: 14px;
			color: #999;
			padding-left: 10px;
			padding-top: 10px;
			padding-bottom: 10px;
			padding-right: 10px;
		}
		.appTitleDiv, .contactDiv {
			padding-left: 10px;
			font-size: 16px;
			height: 20px;
			line-height: 20px;
			padding-left: 10px;
			padding-top: 10px;
			padding-bottom: 10px;
			background-color: #f2f2f2;
		}
		.phone, .telphone, .website {
			color: blue;
		}
		.titleSpan {
			text-align: center;
		}
		p {
			-webkit-user-select: text;
			user-select: text;
		}
		.about {
			-webkit-user-select: text;
			user-select: text;
		}
	</style>
	<body>
		<div id="wrap">
			<div id="main">
				<header id="header">
					<div class="base_style_color" id='BarAppearance' style="height: 22px;width: 100%; position:fixed; left: 0px;top:0px;"></div>
					<div class="base_navigation_bar base_style_color base_navigation_item_bar" style="position: fixed;left: 0px;top: 20px;">
						<a class="base_left_item" href="#" onclick="backClick()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
						<span>关于</span>
						<a class="base_right_item base_hide_item"> </a>
					</div>
					<!-- <img class="base_back_icon" src="image/icon_xiaozu.png"  tapmode onclick="backClick()" /></img>
					<div>
					<h1 id="reply_but_pan" class="titleSpan" >关于</h1>
					</div> -->
				</header>
				<div class="versionDiv" style="padding-top: 22px">
					<img class="logoImg" src="../../image/cfnetappv.png" alt="" onclick="updateVersion()"></img>
					<!-- <img class="logoImg"  alt=""></img> -->
					<p class="appTitle" onclick="updateVersion()">
						长风网
					</p>
					<p class="versionInfo" onclick="updateVersion()"></p>
				</div>
				<div class="appInfoDiv">
					<div class="appTitleDiv">
						<p class="title">
							长风网
						</p>
					</div>
					<div class="introduceDiv">
						<p class="appIntroduce" id="wenben" onclick="copyText()">
							<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="about" ></span>长风APP是由Logis公司开发，采用移动互联网和云计算技术，打造为院校老师和学生提供教学、实习、培训、认证、比赛等服务的个人终身学习和职业成长平台，长风APP按照不同用户角色划分为学生端和教师端，根据账号对应的角色自动显示为用户提供的不同服务和功能。</span>
						</p>
					</div>
					<div class="contactDiv">
						<p class="contactTitle">
							联系方式
						</p>
					</div>
					<div class="contactInfoDiv">
						<p>
							1.网站:<span class="website" onclick="openWebNet()">http://cfnet.org.cn</span>
						</p>
						<p>
							2.客服电话/QQ:<span class="telphone" onclick="callphone()">13311102010</span>
						</p>
						<p>
							3.联系电话:<span class="phone" onclick="callphone2()">010-59621790</span> 转807
						</p>
						<p>
							4.服务时间:<span class="serviceTime">9:00~18:00</span>
						</p>
						<p>
							5.传真:<span class="fax">010-5962 1790-800</span>
						</p>
						<!-- <a href="tel:010-5962 1790-800">010-5962 1790-800</a> -->
						<p>
							6.邮箱:<span class="email">admin@cfnet.org.cn</span>
						</p>
						<!-- <p>
							7.地址:<span class="address">北京市朝阳区朝阳北路五里桥一街1号院非中心8号楼3层</span>
						</p> -->
						<p ><span >7.地址:</span>北京市朝阳区朝阳北路五里桥一街1号院非中心8号楼3层</p>

						<p>
							8.邮政编码:<span class="postcode">100024</span>
						</p>
					</div>
				</div>
			</div>
		</div>
	</body>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/common.js"></script>
	<script type="text/javascript" src="../../script/jquery.min.js"></script>
	<script type="text/javascript">
		apiready = function() {
			if (api.systemType == "ios") {
				$api.fixStatusBar($api.dom('#header'));
			}
			var systemType = api.systemType;
			if (systemType == 'ios') {
				$api.fixStatusBar($api.dom('#headerDiv'));
			}
			var height = $('.navDiv').outerHeight();
			$api.attr('versionDiv', 'margin-top', height);
			// 获取当前版本
			var version = api.appVersion;
			$(".versionInfo").html('当前版本 ' + version);
			//安卓手机系统返回键事件
			api.addEventListener({
				name : 'keyback'
			}, function(ret, err) {
				returnback();
			});

			updateVersion2();
			
			// //获取相关信息
			// var aboutInfo = $api.getStorage("jtabout");
			// $(".about").html(aboutInfo);
			// //获取集团网站
			// var website = $api.getStorage("jtsite");
			// var sitehtml = '<a href="'+website+'">'+website+'</a>';
			// $(".website").html(sitehtml);
			// //获取联系电话
			// var telephone = $api.getStorage("jtphone");
			// var phonehtml = '<a href="tel:'+telephone+'">'+telephone+'</a>';
			// $(".telphone").html(phonehtml);
			// $(".phone").html(phonehtml);
			// //获取集团邮箱
			// var email = $api.getStorage("jtemail");
			// var emailhtml = '<a href="Mailto:'+email+'">'+email+'</a>';
			// $(".email").html(emailhtml);
		}
		function returnback() {
			api.closeWin();
		}

		function imgClick() {
			api.openWin({useWKWebView:true,
				name : "changeJidtype",
				url : "changeJidtype.html",
				animation : {
					type : "none", //动画类型（详见动画类型常量）
					subType : "from_right", //动画子类型（详见动画子类型常量）
					duration : 0
				},
				slidBackEnabled : false
			});
		}

		function updateVersion() {

			var mam = api.require('mam');
            mam.checkUpdate(function(ret, err) {
                if (ret) {
                    var result = ret.result;
                    if (result.update == true && result.closed == false) {
                        var str = '新版本型号:' + result.version + ';更新提示语:' + result.updateTip + ';下载地址:' + result.source + ';发布时间:' + result.time;
                        api.confirm({
                            title : '有新的版本,是否下载并安装 ',
                            msg : str,
                            buttons : ['确定', '取消']
                        }, function(ret, err) {
                            if (ret.buttonIndex == 1) {
                                if (api.systemType == "android") {
                                    api.download({
                                        url : result.source,
                                        report : true
                                    }, function(ret, err) {
                                        if (ret && 0 == ret.state) {/* 下载进度 */
                                            api.toast({
                                                msg : "正在下载应用" + ret.percent + "%",
                                                duration : 2000
                                            });
                                        }
                                        if (ret && 1 == ret.state) {/* 下载完成 */
                                            var savePath = ret.savePath;
                                            api.installApp({
                                                appUri : savePath
                                            });
                                        }
                                    });
                                }
                                if (api.systemType == "ios") {
                                    api.installApp({
                                        appUri : result.source
                                    });
                                }
                            }
                        });
                    } else {
                        api.alert({
                            msg : "暂无更新"
                        });
                    }
                } else {
                    api.alert({
                        msg : err.msg
                    });
                }
            });
		}
        
        function updateVersion2() {

			var mam = api.require('mam');
            mam.checkUpdate(function(ret, err) {
                if (ret) {
                    var result = ret.result;
                    if (result.update == true && result.closed == false) {
                        var str = '新版本型号:' + result.version + ';更新提示语:' + result.updateTip + ';下载地址:' + result.source + ';发布时间:' + result.time;
                        api.confirm({
                            title : '有新的版本,是否下载并安装 ',
                            msg : str,
                            buttons : ['确定', '取消']
                        }, function(ret, err) {
                            if (ret.buttonIndex == 1) {
                                if (api.systemType == "android") {
                                    api.download({
                                        url : result.source,
                                        report : true
                                    }, function(ret, err) {
                                        if (ret && 0 == ret.state) {/* 下载进度 */
                                            api.toast({
                                                msg : "正在下载应用" + ret.percent + "%",
                                                duration : 2000
                                            });
                                        }
                                        if (ret && 1 == ret.state) {/* 下载完成 */
                                            var savePath = ret.savePath;
                                            api.installApp({
                                                appUri : savePath
                                            });
                                        }
                                    });
                                }
                                if (api.systemType == "ios") {
                                    api.installApp({
                                        appUri : result.source
                                    });
                                }
                            }
                        });
                    } else {
                        // api.alert({
                        //     msg : "暂无更新"
                        // });
                    }
                } else {
                    api.alert({
                        msg : err.msg
                    });
                }
            });
		}
		function openWebNet() {
		}

		function callphone() {
			window.location.href = "tel:13311102010";
		}

		function callphone2() {
			window.location.href = "tel:010-59621790";
		}

		function copyUrl2() {
			var Url2 = document.getElementById("wenben");
			Url2.select();
			// 选择对象
			document.execCommand("Copy");
			// 执行浏览器复制命令
			alert("已复制好，可贴粘。");
		}

		function copyText() {
			var rng = document.body.createTextRange();
			rng.moveToElementText("我是好人");
			rng.scrollIntoView();
			rng.select();
			rng.execCommand("Copy");
			rng.collapse(false);
			alert("复制成功!");
		}
	</script>
</html>